package com.demo2do.fms.admin.service.supplier.impl;

import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.fms.admin.dao.supplier.SupplierProfileDao;
import com.demo2do.fms.admin.service.DataServiceImpl;
import com.demo2do.fms.admin.service.supplier.SupplierCertificateService;
import com.demo2do.fms.entity.supplier.common.SupplierCertificate;

/**
 * 
 * @author Ysy
 *
 */
@Service("SupplierCertificateService")
public class SupplierCertificateServiceImpl extends DataServiceImpl<SupplierCertificate> implements SupplierCertificateService{

    @Dao
    private SupplierProfileDao SupplierCertificateDao;

    /*
     * (non-Javadoc)
     * @see com.demo2do.fms.admin.service.supplier.SupplierCertificateService#getSupplierCertificate(java.lang.Long)
     */
    public SupplierCertificate getSupplierCertificate(Long supplierId) {
        SupplierCertificate SupplierCertificate = SupplierCertificateDao.getSupplierCertificate(supplierId);
        return SupplierCertificate;
    }

    /*
     * (non-Javadoc)
     * @see com.demo2do.fms.admin.service.supplier.SupplierCertificateService#edit(com.demo2do.fms.entity.supplier.SupplierCertificate)
     */
    public void edit(SupplierCertificate supplierCertificate, Long operator) {
        genericDaoSupport.update(supplierCertificate.edit(operator));
    }
    
}
